package com.xiebishe.mylibrary.common.pageStatus.centerHandler;

import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;

public abstract class CenterStatusHandler<VIEW extends ViewGroup> extends NormalStatusHandler<VIEW> {
    public CenterStatusHandler(@NonNull VIEW layout) {
        super(layout);
    }

    @Override
    protected final void addToLayout(@NonNull View view, @NonNull VIEW layout) {
        addToCenter(view, layout);
    }

    protected abstract void addToCenter(@NonNull View view, @NonNull VIEW layout);
}